package com.ymttest.database.model;

import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.List;

import net.sf.json.JSONObject;

import com.ymttest.utils.DataUtil;

public class OrderInfoForRelated {
	/**
	 * 订单号
	 */
	private long OrderId;

	/**
	 * 订单状态
	 */
	private Integer TradingStatus;

	/**
	 * 买家id
	 */
	private long UserId;

	/**
	 * 卖家id
	 */
	private long BuyerId;

	/**
	 * 买家名称
	 */
	private String BuyerLoginId;

	/**
	 * 卖家名称
	 */
	private String SellerLoginId;

	/**
	 * 订单总应付金额
	 */
	private BigDecimal PayableAmount;

	/**
	 * 码头平台优惠券Code
	 */
	private String YmtCouponCode;

	/**
	 * 码头平台优惠券金额
	 */
	private BigDecimal YmtCouponAmount;

	/**
	 * 商家优惠券Code
	 */
	private String SellerCouponCode;

	/**
	 * 卖家优惠券金额
	 */
	private BigDecimal SellerCouponAmount;

	/**
	 * 主单ID
	 */
	private Long MainOrderId;

	/**
	 * 商品列表
	 */
	private List<OrderItemInfoForRelated> OrderItemInfoList;

	/**
	 * 优惠活动金额
	 */
	private BigDecimal PromotionReducedAmount;

	public long getOrderId() {
		return OrderId;
	}

	public void setOrderId(long orderId) {
		OrderId = orderId;
	}

	public Integer getTradingStatus() {
		return TradingStatus;
	}

	public void setTradingStatus(Integer tradingStatus) {
		TradingStatus = tradingStatus;
	}

	public long getUserId() {
		return UserId;
	}

	public void setUserId(long userId) {
		UserId = userId;
	}

	public long getBuyerId() {
		return BuyerId;
	}

	public void setBuyerId(long buyerId) {
		BuyerId = buyerId;
	}

	public String getBuyerLoginId() {
		return BuyerLoginId;
	}

	public void setBuyerLoginId(String buyerLoginId) {
		BuyerLoginId = buyerLoginId;
	}

	public String getSellerLoginId() {
		return SellerLoginId;
	}

	public void setSellerLoginId(String sellerLoginId) {
		SellerLoginId = sellerLoginId;
	}

	public BigDecimal getPayableAmount() {
		return PayableAmount;
	}

	public void setPayableAmount(BigDecimal payableAmount) {
		PayableAmount = payableAmount;
	}

	public String getYmtCouponCode() {
		return YmtCouponCode;
	}

	public void setYmtCouponCode(String ymtCouponCode) {
		YmtCouponCode = ymtCouponCode;
	}

	public BigDecimal getYmtCouponAmount() {
		return YmtCouponAmount;
	}

	public void setYmtCouponAmount(BigDecimal ymtCouponAmount) {
		YmtCouponAmount = ymtCouponAmount;
	}

	public String getSellerCouponCode() {
		return SellerCouponCode;
	}

	public void setSellerCouponCode(String sellerCouponCode) {
		SellerCouponCode = sellerCouponCode;
	}

	public BigDecimal getSellerCouponAmount() {
		return SellerCouponAmount;
	}

	public void setSellerCouponAmount(BigDecimal sellerCouponAmount) {
		SellerCouponAmount = sellerCouponAmount;
	}

	public Long getMainOrderId() {
		return MainOrderId;
	}

	public void setMainOrderId(Long mainOrderId) {
		MainOrderId = mainOrderId;
	}

	public List<OrderItemInfoForRelated> getOrderItemInfoList() {
		return OrderItemInfoList;
	}

	public void setOrderItemInfoList(
			List<OrderItemInfoForRelated> orderItemInfoList) {
		OrderItemInfoList = orderItemInfoList;
	}

	public BigDecimal getPromotionReducedAmount() {
		return PromotionReducedAmount;
	}

	public void setPromotionReducedAmount(BigDecimal promotionReducedAmount) {
		PromotionReducedAmount = promotionReducedAmount;
	}
	
	public String toString(){
		return JSONObject.fromObject(this).toString();
	}
	
	public static void main(String[] args) {
		Class c = OrderInfoForRelated.class;
		for (Field f : c.getDeclaredFields()) {
			String s = f.getName();
			System.out.println("DataUtil.verify(expect.get"
					+ DataUtil.toUpperCaseFirstOne(s) + "(), actual.get"+DataUtil.toUpperCaseFirstOne(s)
					+ "(),\"验证id=[\" + expectId + \"]的Payment.Summary." + s
					+ "\");");
		}
	}
}
